#pragma once


class CProduct
{
public:
	CProduct();
	virtual ~CProduct();
public:
	 void setCode(const CString &sCode);
	 CString getCode()const ;
	
	 void setCodeProduct(const CString &sCodeProduct);
	 CString getCodeProduct()const; 

	 void setCodeStore(const CString &sCodeStore);
	 CString getCodeStore()const ;

	 void setPriceWholesale(const CString &sPrice);
	 CString getPriceWholesale()const;

	 void setPriceSell(const CString &sPrice);
	 CString getPriceSell()const;

	 void setPriceInput(const CString &sInput);
	 CString getPriceInput()const;

	 void setLabel(const CString &sLable);
	 CString getLable()const;

	virtual void copy(const CProduct* pProduct);
	virtual CProduct* clone();

	virtual void bought();
	virtual void warranty();
	virtual bool pushToDB();
	virtual bool updateDB();
	virtual bool removeOutDB();

protected:
	CString m_sCode;
	CString m_sCodeStore;
	CString m_sCodeProduct;
	CString m_sProvide;
	CString m_sPriceWholesale;
	CString m_sPriceSell;
	CString m_sPriceInput;
	CString m_sLable;

};